/*
 * Copyright (c) 2022 Huawei Device Co., Ltd.
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

#ifndef DISCOVER_H
#define DISCOVER_H

#ifdef __cplusplus
extern "C" {
#endif

#include "softbus_common.h"

#define MAX_FOUND_DEVICE_NUM 32

typedef struct {
    uint32_t num;
    DeviceInfo dev[MAX_FOUND_DEVICE_NUM];
} DeviceList;


void D_GetBtMac(void);
void D_PublishService(void);
void D_UnPublishService(void);
void D_StartDiscovery(void);
void D_StopDiscovery(void);
void SetJoinLnnFlagAndData(DeviceInfo *device);
bool GetJoinLnnFlag(void);
void GetJoinLnndata(DeviceList *deviceList);
void SetJoinLnnFlag(bool start_joinlnn);
void SetJoinLnndata(DeviceList *deviceList);
void ClearFoundDevices(void);

#ifdef __cplusplus
}
#endif
#endif /* DISCOVER_H */
